﻿<?xml version="1.0"?>
<configuration>
    <configSections>
      <section name="logging" 
               type="CuttingEdge.Logging.LoggingSection, CuttingEdge.Logging"  />
    </configSections>
    <connectionStrings>
      <add name="SqlLogging" 
           connectionString="Data Source=localhost;Integrated Security=SSPI;Initial Catalog=Logging;" />
    </connectionStrings>
    <logging defaultProvider="SqlLoggingProvider">
    	<providers>
			  <add
				  name="SqlLoggingProvider"
				  type="CuttingEdge.Logging.SqlLoggingProvider, CuttingEdge.Logging"
				  fallbackProvider="WindowsEventLogLoggingProvider"
				  threshold="Information"
				  connectionStringName="SqlLogging"
				  description="SQL logging provider"
        />
			  <add
				  name="WindowsEventLogLoggingProvider"
				  type="CuttingEdge.Logging.WindowsEventLogLoggingProvider, CuttingEdge.Logging"
				  threshold="Warning"
				  source="MyWebApplication"
				  logName="MyWebApplication"
				  description="Windows event log logging provider"
        />
		</providers>
	</logging>
	<system.web>
		<httpModules>
			<add name="ExceptionLogger"
				type="CuttingEdge.Logging.Web.AspNetExceptionLoggingModule, CuttingEdge.Logging"/>
		</httpModules>
	</system.web>
</configuration>